<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Date对象</title>
    <script>
        /*
        toLocalString    返回当地时间格式
         */
        var date=new Date()
        document.write(date.toLocaleDateString()+"<br>")
        document.write(date.getTime()+"<br>")

    </script>


</head>

<body>

</body>
</html>